Xbasic
thread.get Method
Syntax
dim result as P = thread.Get(name as c)
Arguments
- nameCharacter
The name of the thread to get. Use thread.enum() to get a list of threads.
Returns
- resultPointer
Returns the thread object for the specified name. If no thread exists, an error will be thrown. Use ON ERROR GOTO to trap the error.
Description
Find a thread based on the name.
Example
ON ERROR GOTO handleErr t = thread.get("Branch") end handleErr: err = error_code_get() msg = error_text_get(err) ui_msg_box("Error",msg) end
See Also